import { post } from '@/utils/request'

var personalApi = {
  // 客户号、账号查询客户信息
  byCustAccInfo: (param) => {
    return post('_ajax.do?method=custInfo.CustInfoByCustNoOrAccNo', param, '个人业务-客户号/账号查询客户信息', 'custInfo.CustInfoByCustNoOrAccNo')
  },
  // 卡号查询客户信息
  getCustInfoByCard: (param) => {
    return post('_ajax.do?method=custInfo.CustInfoByCardNo', param, '个人业务-卡号查询客户信息', 'custInfo.CustInfoByCardNo')
  },
  // 证件号查询客户信息
  getCustInfoById: (param) => {
    return post('_ajax.do?method=custInfo.CustInfoByIDTypeAndIDNo', param, '个人业务-证件号查询客户信息', 'custInfo.CustInfoByIDTypeAndIDNo')
  },
  // 查询账户信息
  getSignAccInfo: (param) => {
    return post('_ajax.do?method=telephoneBanking.CustomerSigningInformationQuery', param, '个人业务-查询签约账户信息', 'telephoneBanking.CustomerSigningInformationQuery')
  },
  // 查询账户信息-账户状态
  getAccInfoStatus: (param) => {
    return post('_ajax.do?method=queryAccInfo.QueryAcctNoState', param, '个人业务-查询账户信息-账户状态', 'queryAccInfo.QueryAcctNoState')
  },
  // 查询账户信息-开户行机构号
  getAccInfoOpenBankCode: (param) => {
    return post('_ajax.do?method=queryAccInfo.QueryOpenBankByAcctNo', param, '个人业务-查询账户信息-开户行机构号', 'queryAccInfo.QueryOpenBankByAcctNo')
  },
  // 借记卡关联账户信息
  getCardAccInfo: (param) => {
    return post('_ajax.do?method=cardInfo.QueryAccListCardLinked', param, '个人业务-查询借记卡关联账户信息', 'cardInfo.QueryAccListCardLinked')
  },
  // 外汇买卖查询
  getFeSearch: (param) => {
    return post('_ajax.do?method=preciousMetalsForeignExchange.FirmTransactionQuery', param, '个人业务-外汇买卖查询', 'preciousMetalsForeignExchange.FirmTransactionQuery')
  },
  // 账户查询-余额查询
  getBalanceSearch: (param) => {
    return post('_ajax.do?method=accInfo.QuerySubAccList', param, '个人业务-账户查询-余额查询', 'accInfo.QuerySubAccList')
  },
  // 账户查询-当日明细查询
  getTodayDetailSearch: (param) => {
    return post('_ajax.do?method=callCenter.PrivateTodayTransQuery', param, '个人业务-账户查询-当日明细查询', 'callCenter.PrivateTodayTransQuery')
  },
  // 账户查询-历史明细查询
  getHistoryDetailSearch: (param) => {
    return post('_ajax.do?method=callCenter.PrivateHisTransQuery', param, '个人业务-账户查询-历史明细查询', 'callCenter.PrivateHisTransQuery')
  },
  // 支票
  getChequeStatusList: (param) => {
    return post('_ajax.do?method=checkInfo.QueryCheckListByAccNo', param, '个人业务-支票', 'checkInfo.QueryCheckListByAccNo')
  },
  // 查询签约信息里面的签约行名称
  getSignBankName: (param) => {
    return post('_ajax.do?method=publicInfo.QueryOrgNameByBankCodeName', param, '个人业务-查询签约信息里面的签约行名称', 'publicInfo.QueryOrgNameByBankCodeName')
  },
  // 支票-非重空支票状态查询
  getNoHeavyStatus: (param) => {
    return post('_ajax.do?method=checkInfo.QueryNoRubberBlankCheck', param, '个人业务-支票-非重空支票状态查询', 'checkInfo.QueryNoRubberBlankCheck')
  },
  // 账户类型为借记卡时查询机构名称
  getOrgNameByDebitCard: (param) => {
    return post('_ajax.do?method=publicInfo.QueryOrgNameByAccOrCardNo', param, '个人业务-账户类型为借记卡机构名称查询', 'publicInfo.QueryOrgNameByAccOrCardNo')
  },
  // 签约状态字段修改
  getSignStatusVal: (param) => {
    return post('_ajax.do?method=telephoneBanking.CustomerSignStatusQuery', param, '个人业务-客户信息签约字段修改', 'telephoneBanking.CustomerSignStatusQuery')
  }
}
export default personalApi
